package com.maiji.cloud.response.community;

import com.maiji.cloud.response.login.UserInfoResData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.List;

@NoArgsConstructor
@Data
@Accessors(chain=true)
@ApiModel("ComCommentOutputDto")
public class ComCommentOutputDto {

    @ApiModelProperty("发布者ID")
    private String sourceUserId;

    @ApiModelProperty("被评论或回复者ID")
    private String targetUserId;

    @ApiModelProperty("用户信息")
    private UserInfoResData sourceUser;

    @ApiModelProperty("用户信息")
    private UserInfoResData targetUser;

    @ApiModelProperty("评论（转发）ID")
    private String commentId;

    @ApiModelProperty("来源ID")
    private String belongId;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("发布时间戳")
    private Long publishTime;//

    @ApiModelProperty("0:评论 1:转发 2:评论的评论")
    private Integer status; //

    @ApiModelProperty("点赞数")
    private Integer praise_count;//点赞

    @ApiModelProperty(value = "是否点赞")
    private Boolean isPraise = false;//是否点赞

    @ApiModelProperty(value = "评论的评论列表")
    private List<ComCommentOutputDto> commentList;

    @ApiModelProperty(value = "是否本人所发",required = true)
    private Boolean isOfSelf = false;//是否本人所发

    @ApiModelProperty(value = "是否作者",required = true)
    private Boolean isAuthor = false; //是否作者

    @ApiModelProperty(value = "是否被删除 0：未被删除 、1：被本人删除、2：被作者删除 、3：被管理员删除",required = true)
    private Integer delete;//1：被本人删除、2：被作者删除 、3：被管理员删除

    @ApiModelProperty(value = "删除原因",required = true)
    private String deleteReason; //删除原因

}
